from .io_operation import BoolArrayIo

class OilPressureCheck:
    def __init__(self, io_param_name):
        self.oil_io = BoolArrayIo(io_param_name, 30)

    def read_state(self):
        status = self.oil_io.read_states()
        if sum(status) == 30:
            return True

        else:
            return False